﻿@model Resto.CostControl.Core.DicItem
@{
    var grid = Html.DWZGridFor(Model)
        .Title("字典列表")
        .Action(@Url.Action("List"))
        .Columns(col =>
        {
            col.Bind(e => e.Id).IsKey();
            col.Bind(e => e.ItemText).AsQuery();
            col.Bind(e => e.ItemValue).AsQuery();
            col.Bind(e => e.FirstChar);
            col.Bind(e => e.TypeCode);
            col.Bind(e => e.SeqNo);
            col.Bind(e => e.Description);
            col.Bind(e => e.Id, "操作", 120)
                .Template(@LFlying.FormatOp(@Url.Action("Edit"), @Url.Action("Delete"), "枚举信息", "itemtext").ToString());
        })
        .Buttons(btn =>
        {
            btn.Bind("Add", "新建", FlexiGridButtonType.Add).Action(@Url.Action("Edit")).OnPress("OpenFormDialog");
        })
        ;
}
@Html.Raw(grid.ToString())
